let Init={
    //窗体运行时调用
    inits:function () {
        let name=sessionStorage.getItem("aname");
        $("#name").text(name);
        //获取当前时间
        Init.getCurrentDate(new Date());
    },
    //获取当前时间
    getCurrentDate:function (date){
    let y = date.getFullYear();
    let m = date.getMonth()+1;
    let d = date.getDate();
    let h = date.getHours();
    let min = date.getMinutes();
    let s = date.getSeconds();
    let str=y+'年'+(m<10?('0'+m):m)+'月'+(d<10?('0'+d):d)+'日  '+(h<10?('0'+h):h)+':'+(min<10?('0'+min):min)+':'+(s<10?('0'+s):s);
    $("#sj").text(str);
    setTimeout("Init.getCurrentDate(new Date());", 1000);
    return str;
    }
}
$(Init.inits);